avatar Bite 65. Get all valid dictionary words for a draw of letters

This Bite focusses on the use of itertools. To that extend you complete get_possible_dict_words and _get_permutations_draw to get all valid dictionary words for a random draw of 7 letters.

This is fed into the tests that calculate the word with maximum value (work previously done for Bite 3) and there you go: you have a Scrabble cheat tool (Scrabble fans, pay attention or maybe skip this Bite!).

For example a draw of letters G, A, R, Y, T, E, V would give highest valued word GARVEY (13 points).


This Bite is adapted from PyBites Code Challenge 02: Word Values Part II - A Simple Game. Check it out if you want to code up the complete game including the user interaction part.

Login and get coding
go back Intermediate level
Bitecoin 3X

449 out of 498 users completed this Bite.
Will you be the 450th person to crack this Bite?
Resolution time: ~63 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 6.65 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help